import java.util.Scanner;
/**
 * @author Administrator
 */
public class ZY04 {
    public static void main(String[] args) {
        int x = (int) (Math.random() * 10);
        System.out.println("请输入一个1-10之间的数");
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        while(a!=x){
            if (a < x) {
                System.out.println("太小了");
                /*Scanner sc = new Scanner(System.in);*/
                int b = scanner.nextInt();
                a = b;
            } else if (a > x) {
                System.out.println("太大了");

                int b = scanner.nextInt();
                a = b;
            }
            Scanner sc = new Scanner(System.in);
        }
        System.out.println("恭喜你，猜对了");
    }
}

